﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class Hero
    {
        private string heroname;
        private string nickname;
        private string heroinfo;
        private int attack;
        private int defence;
        private int speed;
        public string Heroname
        {
            get { return this.heroname; }
            set { this.heroname = value; }
        }
        public string Nickname
        {
            get { return this.nickname; }
            set { this.nickname = value; }
        }
        public int Attack
        {
            get { return this.attack; }
            set { this.attack = value; }
        }
        public int Defence
        {
            get { return this.defence; }
            set { this.defence = value; }
        }
        public string Heroinfo
        {
            get { return this.heroinfo; }
            set { this.heroinfo = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }
        public void hero(string heroname, string nickname, int attack, int defence, string heroinfo,int speed)
        {
            this.heroname = heroname;
            this.nickname = nickname;
            this.attack = attack;
            this.defence = defence;
            this.heroinfo = heroinfo;
            this.speed = speed;

        }
    }
}
